package com.baiduspring.utils;

import com.baiduspring.utils.bean.PageBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 返回结果对象
 *
 * @param <T> 泛型
 * @author xiongyan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ResponseResult<T> {
    private Integer code;
    private String message;
    private T data;
    private PageBean pageBean;

    public ResponseResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
